package com.feijiang.util;

import lombok.Data;

/**
 * @author t-zhaoheng
 * @since 2021/12/29
 */
@Data
public class MyPage {
  int pageSize;
  int pageNum;
  long total;
  Object data;

  public static MyPage buildPage(int pageSize, int pageNum, long total, Object data) {
    MyPage myPage = new MyPage();
    myPage.setPageSize(pageSize);
    myPage.setPageNum(pageNum);
    myPage.setData(data);
    myPage.setTotal(total);
    return myPage;
  }

}
